package com.demo.common.dynamic.datasource.annotation;

import com.demo.common.dynamic.datasource.utils.DsAutoInitEvent;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启用自定义多数据源配置自动初始化
 *
 * @author molong
 * @since 2021/10/28
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import({DsAutoInitEvent.class})
public @interface EnableDynamicDs {
}
